Dashboard > Community Wiki > ... > Dialogs overview > Displaying values from checkbox control
Displaying values from checkbox control Log In View a printable version of the current page.

Added by Simon Goodchild , last edited by Boris Kraft on Jun 23, 2008  (view change)
Labels: 

When you select multiple items via a checkbox control in your dialog, there is no way to directly output them again in your templates. I tried for ages to find a way to do this using just the taglibs, but I had to resort to a small scriptlet in the end:

Iterator hubs = Resource.getLocalContentNode(request).getContent("hub").getNodeDataCollection().iterator();

while( hubs.hasNext() )
{ 
out.println( ( (NodeData)hubs.next() ).getString() + "<br />" );
}

Maybe there's a better way, but this works for me. This should also work for radio button controls.

Powered by a free Atlassian Confluence Open Source Project License granted to Magnolia International. Evaluate Confluence today.
Powered by Atlassian Confluence 2.7, the Enterprise Wiki. Bug/feature request - Atlassian news - Contact administrators