[JBoss Seam] - Re: bug or limitation with seam/facelets ?
by rhardy5014
I am getting a similar error (model validation failed: none) when trying to validate a field on a page use the hibernate validator.
I am using:
JBOSS 4.0.4GA
Seam 1.2.1 GA
Ajax4jsf 1.1.0
The JSF snippet is:
<s:decorate id="#{decorationID}">
| <h:inputText styleClass="#{invalid?'invalidField searchInput':'searchInput'}"
| value="#{searchInfo.fullText}"
| required="true">
| <s:validate/>
| <a4j:support event="onblur"
| reRender="#{decorationID}"
| eventsQueue="generalEventQueue"
| oncomplete="releaseAjax();"/>
| </h:inputText>
| </s:decorate>
and my Seam bean property is validated as follows:
@Length(max=20)
| private String fullText = null;
The error occurs when ajax4jsf causes the inputText field to be validated.
Any ideas what this error means?
Thanks,
Richard.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4054288#4054288
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4054288
19Â years
[JBoss Portal] - instances problem
by habicht
hi
i'm using the jboss-portal 2.4.1 bundle on java 1.5 and have got a problem with the portlet-instances. although i have created all necessary xml-files according to the 2.4 reference-guide the necessary instances aren't created and i get the "Object not found..."-Exception. below are the used xml-files. i hope you can help me
regards christof
portlet.xml
<?xml version="1.0" encoding="UTF-8"?>
| <portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd" version="1.0">
| <portlet>
| <portlet-name>MyWorldPortlet</portlet-name>
| <portlet-class>org.jboss.portlet.hello.MyPortlet</portlet-class>
| <supports>
| <mime-type>text/html</mime-type>
| <portlet-mode>VIEW</portlet-mode>
| <portlet-mode>HELP</portlet-mode>
| <portlet-mode>EDIT</portlet-mode>
| </supports>
| <portlet-info>
| <title>Mein Portlet</title>
| </portlet-info>
| </portlet>
| </portlet-app>
my-object.xml
<?xml version="1.0" encoding="UTF-8"?>
| <deployments>
| <deployment>
| <parent-ref/>
| <if-exists>overwrite</if-exists>
| <portal>
| <portal-name>HelloPortal</portal-name>
| <properties>
| <!-- Set the layout for the default portal -->
| <!-- see also portal-layouts.xml -->
| <property>
| <name>layout.id</name>
| <value>generic</value>
| </property>
| <!-- Set the theme for the default portal -->
| <!-- see also portal-themes.xml -->
| <property>
| <name>theme.id</name>
| <value>Nphalanx</value>
| </property>
| <!-- set the default render set name (used by the render tag in layouts) -->
| <!-- see also portal-renderSet.xml -->
| <property>
| <name>theme.renderSetId</name>
| <value>divRenderer</value>
| </property>
| <!-- set the default strategy name (used by the strategy interceptor) -->
| <!-- see also portal-strategies.xml -->
| <property>
| <name>layout.strategyId</name>
| <value>maximizedRegion</value>
| </property>
| </properties>
| <supported-modes>
| <mode>view</mode>
| <mode>edit</mode>
| <mode>help</mode>
| </supported-modes>
| <supported-window-states>
| <window-state>normal</window-state>
| <window-state>minimized</window-state>
| <window-state>maximized</window-state>
| </supported-window-states>
| <page>
| <page-name>start</page-name>
| <properties/>
| <window>
| <window-name>MyPortletWindow</window-name>
| <instance-ref>MyWorldPortletInstance</instance-ref>
| <region>center</region>
| <height>0</height>
| </window>
| <security-constraint>
| <policy-permission>
| <unchecked/>
| <action-name>viewrecursive</action-name>
| </policy-permission>
| </security-constraint>
| </page>
| <security-constraint>
| <policy-permission>
| <unchecked/>
| <action-name>personalizerecursive</action-name>
| </policy-permission>
| </security-constraint>
| </portal>
| </deployment>
| <deployment>
| <if-exists>overwrite</if-exists>
| <parent-ref>HelloPortal</parent-ref>
| <page>
| <page-name>test</page-name>
| <window>
| <window-name>MyPortletWindow</window-name>
| <instance-ref>MyWorldPortletInstance</instance-ref>
| <region>center</region>
| <height>0</height>
| </window>
| <security-constraint>
| <policy-permission>
| <unchecked/>
| <action-name>viewrecursive</action-name>
| </policy-permission>
| </security-constraint>
| </page>
| </deployment>
| </deployments>
portlet-instances.xml
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
| <deployments>
| <deployment>
| <instance>
| <instance-id>MyWorldPortletInstance</instance-id>
| <portlet-ref>MyWorldPortlet</portlet-ref>
| </instance>
| </deployment>
| </deployments>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4054283#4054283
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4054283
19Â years
[JBoss AOP] - No interception happens with JBoss AOP 1.5.x and JBoss AS 4.
by kabir.khanï¼ jboss.com
1) Make sure that you have JBoss set up correctly for loadtime weaving as described in section 10.3 of the JBoss AOP 1.5.x reference manual.
2) Run the "injboss" tutorial example that comes with the JBoss AOP download. This explains how to package your applications for loadtime weaving
A lot of people have asked this question so either use search, or read this:
>From http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4050572#4050572:
"flavia.rainone(a)jboss.com" wrote : So, the example injboss is not working in your configuration of JBoss AS server?
|
| Let's check the following steps:
|
| - let's start with a clean server to help us tracking what is missing here (fresh installed, and you haven't edited any file of it, nor have you deployed anything)
| - in this JBoss AS, remove the jboss-aop-jdk50.deployer directory of server/all/deploy
| - download the latest stable version of JBoss AOP (1.5.5 GA)
| - in the directory docs/aspect-framework/examples/injboss of your JBoss AOP installation, edit build.xml file, in order to set your jboss.home directory as follows:
|
| | <property name="jboss.dir" value="your jboss home directory here"/>
| |
| - run one of the loadtime deployment tasks of the injboss example, like the following:
|
| | $ ant deploy-basic-lt-war-in-jar
| |
| - copy the appropriate jboss-aop-jdk50.deployer directory from your JBoss AOP installation to your server/all/deploy directory.
| - edit jboss-aop-jdk50.deployer/jboss-service.xml, setting EnableLoadTimeWeaving with a true value, like follows:
|
| | <attribute name="EnableLoadtimeWeaving">true</attribute>
| |
| - follow the instructions of the jboss-aop-jdk50.deployer/ReadMe.txt file
| - copy pluggable-instrumentor.jar file (located in the lib-50 directory of your JBoss AOP installation) to the bin directory of your server
| - edit your run.sh or run.bat to include -javaagent:pluggable-instrumentor.jar in the JAVA_OPTS
| - start up your server on the "all" mode
| - now, access the address http://localhost:8080/aopexample/index.jsp and you should see the interceptor messages on your console.
|
| This should work. Once you have this up and running, just replace the injboss jar by your application file in the deploy dir.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4054277#4054277
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4054277
19Â years