[JBoss Seam] - h:messages on modalPanel
by kgoedert
Hi,
I want to display faces error messages in a rich faces modal dialog. I did the following:
<rich:modalPanel id="msgDialog" headerClass="login-head">
<f:facet name="header">
<h:outputText value="Atenção" />
</f:facet>
<f:facet name="controls">
<h:graphicImage value="/images/modal/close.png"
style="cursor:pointer" onclick="Richfaces.hideModalPanel('msgDialog');" />
</f:facet>
<h:messages />
</rich:modalPanel>
But the error messages are not displayed in the dialog only on the server console. How can I fix this? And also, I create a message.properties file and placed it on WEB-INF/classes with my customized messages but the default messages are displayed on the console.
Thanks for any help
Kelly
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080601#4080601
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080601
18 years, 7 months
[JBoss Seam] - Re: Multiple DataModels in an SFSB
by jbuechel
"gavin.king(a)jboss.com" wrote : void @Factory methods should not have a scope. The scope is defined on the attribute that does the outjection.
Hi, i'm struggling with a similar issue as fernando did:
Here some code snippets:
DataModel declaration:
@DataModel(scope=ScopeType.PAGE)
| private Collection<Role> roleDataModel;
|
Factory declaration:
@Factory("roleDataModel")
| public void initializeModel() {
| log.debug("initializeModel() called (but not used)");
| if (organigramTreeModelSelection != null)
| roleDataModel = ((OrganigramNode) organigramTreeModelSelection)
| .getRoles();
| else
| roleDataModel = new ArrayList();
|
| }
|
xhtml:
<rich:dataTable id="roleTableId" value="#{roleDataModel}"
| ...
| </rich:dataTable>
As Gavin wrote the scope has to be defined on the outjecting attribute. Considering @DataModel does only take PAGE or UNSPECIFIED scopes i run into a problem as the datatable (roleTableId) is updated through an ajax request.
As follows:
<rich:tree switchType="ajax" ajaxSubmitSelection="true" reRender="fwcToolbar, roleTableId" ....
|
But in this case the PAGE scope i can't use, right?
Does anybody have any idea?
Help would be very appreciated as i've been fighting with this quite long..
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080599#4080599
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080599
18 years, 7 months
[Security & JAAS/JBoss] - How to let "the system" access secure beans?
by bjolletz
Hello everybody!
I'm quite new to JBoss, so please excuse me if I'm missing something obvious, but I have the following problem:
I am trying to secure some beans using the @RolesAllowed annotation. When doing this, I realized that some methods should only be able to be called by "the system", and not really by logged in users. "The system" in this case refers to some scheduled tasks which run once in a while. "The system" does not contain any user principals or roles, so the question is, how do I specify in my @RolesAllowed annotations that only "the system" is allowed to call certain methods?
I think that this must be a common problem, so I feel like I'm missing something here... Is there any standard ways to handle this situation?
If someone has any thoughts on this, it would be very appreciated!
/Daniel
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080592#4080592
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080592
18 years, 7 months