[JBoss Seam] - Re: Problems using ajax validation in seam-gen
by damianharvey
As mentioned in the JIRA this is the code (added to any old page) that will cause ajax4jsf to reset the conversation resulting in a "The conversation ended, timed out or was processing another request" error.
I realise that this sort of problem is better suited to the ajax4jsf forum but wanted to keep continuity with JIRA.
Bean:
| @Name("calcBean")
| public class CalcBean {
|
| private Integer first = new Integer(0);
| private Integer second = new Integer(0);
| private Integer third = new Integer(0);
|
| public Integer getFirst() {
| return first;
| }
| public void setFirst(Integer first) {
| this.first = first;
| }
| public Integer getSecond() {
| return second;
| }
| public void setSecond(Integer second) {
| this.second = second;
| }
| public Integer getThird() {
| return third;
| }
| public void setThird(Integer third) {
| this.third = third;
| }
| public Integer getTotal() {
| return this.first + this.second + this.third;
| }
| }
|
Page (put these on any page):
| <s:decorate id="firstDecoration" template="layout/edit.xhtml">
| <ui:define name="label">First</ui:define>
| <h:inputText id="first"
| required="true"
| value="#{personHome.first}">
| <a:support event="onblur" reRender="firstDecoration, total" eventsQueue="calc" ignoreDupResponses="true"/>
| </h:inputText>
| </s:decorate>
|
| <s:decorate id="secondDecoration" template="layout/edit.xhtml">
| <ui:define name="label">Second</ui:define>
| <h:inputText id="second"
| required="true"
| value="#{personHome.second}">
| <a:support event="onblur" reRender="secondDecoration, total" eventsQueue="calc" ignoreDupResponses="true"/>
| </h:inputText>
| </s:decorate>
|
| <s:decorate id="thirdDecoration" template="layout/edit.xhtml">
| <ui:define name="label">Third</ui:define>
| <h:inputText id="third"
| required="true"
| value="#{personHome.third}">
| <a:support event="onblur" reRender="thirdDecoration, total" eventsQueue="calc" ignoreDupResponses="true"/>
| </h:inputText>
| </s:decorate>
|
| <s:div id="total">
| Total: <h:outputText value="#{personHome.total}"/>
| </s:div>
|
Enter some values in the first, second and third and then tab over them and back again. Ajax4JSF will be overwhelmed and will kill the page (or at least generate the error mentioned above).
Regards,
Damian.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080026#4080026
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080026
16Â years, 10Â months
[EJB 3.0] - Naming for a stateles in an EAR
by jc7442
I have an interface. with several implentation developped as stateless session.
In a session bean according to an algorithm I choose one of the implementation. Each implementation as a name and is deployed in the same ear as the invoker
my code looks like:
| @Resource SessionContext ctx;
|
| public void myMethod() {
| if (...) {
| ctx.lookup("earName/myImpl1/local");
| } else if (...) {
| ctx.lookup("earName/myImpl2/local");
| } ...
| }
|
This code works fine but I have to hardcode the name of the ear. In my project the name of the ear contain the project version. I'd like to be able to do a lookup with adding the earname. My ejb always uses implemtnations contains in the same ear.
1-Is it possible to invoke a service in the same ear without writting the ear name in the lookup ?
2-Is it possible to dynamiclly get the ear name from a staeless session ?
I do not want to use the EJB annotation in order not to inject ejb that I will not use. Is there other solution ?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080024#4080024
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080024
16Â years, 10Â months
[JBoss jBPM] - Synchronization problem
by lucapino
Hi all,
we are developing an application using jBPM.
This application has a scheduler that instances jBPM processes in different thread.
These processes are long term automatic processes (made of several 'node' step each with an actionHandler) which spans several minutes.
When in one of the step the actionHandler raise an exception, we suspend and save the process instance.
We then develop a console that query the jBPM engine to find the suspended processes, in order to resume or kill the execution.
The problem we have is this: when we call findProcessInstances() to retrieve the process instances from the database, jBPM did not responds until all the process in execution ends or is suspended.
It seems that there is a problem of concurrence in the database access.
We didn't find any advice to solve this.
Any help would be appreciated.
Thanks in advance
Luca
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080018#4080018
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080018
16Â years, 10Â months
[JBoss Portal] - Re: CMS
by sohil.shahï¼ jboss.com
anonymous wrote :
| It's weird because I can't write anything at the root of the CMS repository. I get an AccessDenidedException even if I have Administrator privileges. I can validate that I have those privileges because they get written in the database.
|
This maybe a possible bug if the user you are logged in as belongs to the "Administrators" group. This group should be able to create resources at the CMS root which is '/' path.
I will have to evaluate this further
anonymous wrote :
| I've also tried to monitor the database logs and I confirm that when I create elements in the repository, they don't get created in the database. Only an access rights validation is done.
|
Resources will be created in the CMS repository stored in the database only after it passes the validation in the security layer. In your usecase, you are not getting passed that.
anonymous wrote :
| I can't even find where the data gets written when I create elements in the CMS repository. I can't find it's trace in the DB, nor in the file system. Does it get created in memory but JBoss cache blocks it from beeing written ? How can I verify that ?
|
The CMS data is stored in the database. You will see it if it gets passed the security checkpoint, but that seems to be a problem in your usecase right now.
As a possible workaround until I look into this, you can log in as the core 'admin' user shipped with the portal, and you should be able to create resources at the root level.
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080014#4080014
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080014
16Â years, 10Â months