[ http://issues.apache.org/struts/browse/SHALE-139?page=all ]
Craig McClanahan moved STR-2444 to SHALE-139: --------------------------------------------- Project: Shale (was: Struts Action 1) Key: SHALE-139 (was: STR-2444) Component: (was: Shale) Version: (was: Unknown) Assign To: (was: Struts Developer Mailing List) > [Shale] Make the current dialog state available to applications > --------------------------------------------------------------- > > Key: SHALE-139 > URL: http://issues.apache.org/struts/browse/SHALE-139 > Project: Shale > Type: Improvement > Environment: Operating System: Mac OS X 10.3 > Platform: Macintosh > Reporter: David Geary > Priority: Minor > > Currently, applications can access the current dialog's status via a Status > object that Shale stores in session scope. But the dialog state is buried > inside > that status in a Status.Position object that's inaccessible outside of the > Shale > dialog package. That means applications cannot programatically determine the > current state of a dialog. > Sometimes it's important for backing beans to determine state. For example, I > have a wizard based on one JSP page. That page has one h:panelGrid for each > panel in the wizard, but only one grid is displayed at a time with the > rendered > attribute: > <h:panelGrid ... rendered="#{bb.addressPanelRendered}">...</h:panelGrid> > ... > <h:panelGrid ... rendered="#{bb.phonePanelRendered}">...</h:panelGrid> > ... > My backing bean's isAddressPanelRendered and isPhonePanelRendered methods need > to know the current dialog state. I'd be happy with these additions to > Status.java: > public String getDialogName() { > return peek().getDialogName(); > } > public String getStateName() { > return peek().getStateName(); > } -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/struts/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]