[jboss-user] [JBoss Seam] - Re: Calling a seam component from URL

yilmaz_ do-not-reply at jboss.com
Wed Nov 28 03:48:25 EST 2007


YourComponent comp=(YourComponent)Component.getInstance("componentname");

to do this you have to configure components.xml file first.

<?xml version="1.0" encoding="UTF-8"?> 
<components xmlns="http://jboss.com/products/seam/components" 
xmlns:core="http://jboss.com/products/seam/core" 
xmlns:drools="http://jboss.com/products/seam/drools" 
xmlns:security="http://jboss.com/products/seam/security" 
xmlns:mail="http://jboss.com/products/seam/mail" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xmlns:web="http://jboss.com/products/seam/web" 
xsi:schemaLocation= 
"http://jboss.com/products/seam/core http://jboss.com/products/seam/core-1.2.xsd 
http://jboss.com/products/seam/drools http://jboss.com/products/seam/drools-1.2.xsd 
http://jboss.com/products/seam/security http://jboss.com/products/seam/security-1.2.xsd 
http://jboss.com/products/seam/mail http://jboss.com/products/seam/mail-1.2.xsd 
http://jboss.com/products/seam/components http://jboss.com/products/seam/components-1.2.xsd 
http://jboss.com/products/seam/web http://jboss.com/products/seam/web-1.2.xsd 
"> 
<core:init debug="true" jndi-pattern="@jndiPattern@"/> 
<web:context-filter url-pattern=" /yourservleturl/* "/> 
<core:manager concurrent-request-timeout="500" 
conversation-timeout="120000" 
conversation-id-parameter="cid" 
conversation-is-long-running-parameter="clr"/>
:
:


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108326#4108326

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108326



More information about the jboss-user mailing list