[JBoss Seam] - Re: Seam authentication module problem
by carlos.abreu
Humm... Allright, my configuration files is:
login.page.xml
| <!DOCTYPE page PUBLIC
| "-//JBoss/Seam Pages Configuration DTD 1.1//EN"
| "http://jboss.com/products/seam/pages-1.1.dtd">
|
| <page>
| <navigation from-action="#{identity.login}">
| <rule if="#{identity.loggedIn}">
| <redirect view-id="/home.xhtml"/>
| </rule>
| </navigation>
| </page>
|
components.xml
| <drools:rule-base name="securityRules">
| <drools:rule-files><value>/security.drl</value></drools:rule-files>
| </drools:rule-base>
|
| <security:identity authenticate-method="#{authenticator.authenticate}" />
|
All the others configurations is using the default generated by seam gen.
My login page is using this code:
|
| <h:form>
|
| <div class="dialog">
| <div class="prop">
| <span class="name">Username</span>
| <span class="value">
| <h:inputText id="username" value="#{identity.username}"/>
| </span>
| </div>
| <div class="prop">
| <span class="name">Password</span>
| <span class="value">
| <h:inputSecret id="password" value="#{identity.password}"/>
| </span>
| </div>
| </div>
|
| <div class="actionButtons">
| <h:commandButton value="Login" action="#{identity.login}"/>
| </div>
|
| </h:form>
|
Thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048772#4048772
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048772
18 years, 11 months
[JBoss Seam] - Re: EntityHome for nested entity CRUD?
by fernando_jmt
In order to avoid to have basically the same page twice, I think you can improve that in two ways:
1) Use a page composition for Edit form and pass the component instance as ui:param.
2) Declare in your pages.html alias view-id for each case but render only one page. Something like this:
|
| <page view-id="/admin/userListing.xhtml">
| <action execute="#{userList.refresh}"/>
| <navigation evaluate="#{userList.wired}">
| <render view-id="/userList.xhtml"/>
| </navigation>
| </page>
|
|
| <page view-id="/admin/userListingSpecific.xhtml">
| <action execute="#{userList.refresh}"/> //do something with the action
| <navigation evaluate="#{userList.wired}">
| <render view-id="/userList.xhtml"/>
| </navigation>
| </page>
|
|
With above code I can define some component variables that then I can use to render specific content inside userList.xhtml.
userListing.xhtml and userListingSpecific.xhtml do not exist physically they are only declared in pages.xml.
HTH.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048760#4048760
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048760
18 years, 11 months