[jboss-user] [JBossWS] - Re: How can I use session sope in jbossws?
To froden: Would mind parse you code here pls? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4125069#4125069 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4125069 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - How can I use session sope in jbossws?
I use flash lite client to access jbossws webservice, ServletContexts.instance().getRequest() return null, so I can't get the session scope. Maybe I need to use a token in soap header? If so, is there a good way to map the session scope to the token? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4119988#4119988 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4119988 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: How can I get the session id?
Anyone can help me? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4119879#4119879 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4119879 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: How can I get the session id?
up, need your help! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4118162#4118162 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4118162 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: How can I get the session id?
So, do you have any good way to solve it? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4117522#4117522 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4117522 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: How can I get the session id?
But ServletContexts.instance().getRequest() always return null, how can I keep the session?thanks. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4117778#4117778 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4117778 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: How can I get the session id?
No, I call this webservice method from flash lite client. I like to get the jsessionid and send it back via request url, is there any good way? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4117420#4117420 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4117420 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: How can I get the session id?
Identity.instance.login will call authenticate method that config in component.xml, isn't it? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4117351#4117351 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4117351 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - How can I get the session id?
I use below code, but FacesContext.getCurrentInstance() always return null. | FacesContext facesContext = FacesContext.getCurrentInstance(); | ExternalContext externalContext = facesContext.getExternalContext(); | HttpSession session = (HttpSession)externalContext.getSession(true); | String sessionId = session.getId(); package com.eastidea.menglishweb.action; | | import javax.faces.context.ExternalContext; | import javax.faces.context.FacesContext; | import javax.persistence.EntityManager; | import javax.persistence.NoResultException; | import javax.servlet.http.HttpSession; | | import org.jboss.seam.annotations.In; | import org.jboss.seam.annotations.Name; | import org.jboss.seam.security.Identity; | | import com.eastidea.menglishweb.action.base.BaseActionImpl; | import com.eastidea.menglishweb.entity.User; | | @Name(authenticateAction) | public class AuthenticateActionImpl extends BaseActionImpl implements | AuthenticateAction { | | private static final long serialVersionUID = 7601102159656515184L; | | @In | private EntityManager entityManager; | | @In | private Identity identity; | | public boolean authenticate() { | try { | User user = (User) entityManager | .createQuery( | from User where username = :username and password = :password) | .setParameter(username, identity.getUsername()) | .setParameter(password, identity.getPassword()) | .getSingleResult(); | setCurrentUser(user); | | FacesContext facesContext = FacesContext.getCurrentInstance(); | ExternalContext externalContext = facesContext.getExternalContext(); | HttpSession session = (HttpSession)externalContext.getSession(true); | String sessionId = session.getId(); | | return true; | } catch (NoResultException ex) { | return false; | } | } | } | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4117251#4117251 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4117251 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: How can I get the session id?
Also, is there a good way to keep http session in jboss seem actions calling via web service method? @Stateless | @Name(AuthenticateWebService) | @WebService(name = AuthenticateWebService, serviceName = AuthenticateWebService) | public class AuthenticateWebService implements AuthenticateWebServiceRemote { | | //@In(value = authenticateAction, create = true) | //private AuthenticateAction authenticateAction; | | @WebMethod | public String login(String username, String password) { | Identity.instance().setUsername(username); | Identity.instance().setPassword(password); | Identity.instance().login(); | | if (Identity.instance().isLoggedIn()){ | ResponseInfo rInfo = ResponseInfo.getSuccessInfo(); | | | | String xml = BeanXMLMapping.toXML(rInfo); | return xml; | } | else { | ResponseInfo rInfo = ResponseInfo.getFailInfo(); | String xml = BeanXMLMapping.toXML(rInfo); | return xml; | } | | } View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4117252#4117252 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4117252 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Is there a good way that let seam bean or ejb return a xml f
Is there a good way that let seam bean or ejb return a xml file for flash client? Do we must use a servlet working before ejb to return the xml stream? thanks View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4115308#4115308 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4115308 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: After adding SeamServletFilte, request.getInputStream()
up View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4100121#4100121 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4100121 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: After adding SeamServletFilte, request.getInputStream()
still does not work, pls help me, thanks. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4100060#4100060 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4100060 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: After adding SeamServletFilte, request.getInputStream()
After adding SeamServletFilte, request.getInputStream() return null? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4099705#4099705 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4099705 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - After adding SeamServletFilte, request.getInputStream() retu
filter | filter-nameSeam Servlet Filter/filter-name | filter-class | org.jboss.seam.servlet.SeamServletFilter | /filter-class | /filter | filter-mapping | filter-nameSeam Servlet Filter/filter-name | url-pattern*.serv/url-pattern | /filter-mapping servlet | servlet-nametestServlet/servlet-name | servlet-class | com.eastidea.menglishweb.action.TestServlet | /servlet-class | /servlet | servlet-mapping | servlet-nametestServlet/servlet-name | url-pattern/testServlet.serv/url-pattern | /servlet-mapping public void doPost(HttpServletRequest request, HttpServletResponse response) | throws ServletException, IOException { | | response.setContentType(text/html); | response.setCharacterEncoding(utf-8); | | ServletInputStream servletInputStream = request.getInputStream(); File file = new File(d:/out.txt); | int readCount; | byte[] readByte = new byte[1024]; | FileOutputStream fileOutputStream; | try { | fileOutputStream = new FileOutputStream(file); | readCount = servletInputStream.readLine(readByte, 0, | readByte.length); | | while (readCount != -1) { | fileOutputStream.write(readByte, 0, readCount); | readCount = servletInputStream.readLine(readByte, 0, 1024); | } | fileOutputStream.flush(); | | } catch (IOException e) { | // TODO Auto-generated catch block | e.printStackTrace(); | }} View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4099704#4099704 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4099704 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: After adding SeamServletFilte, request.getInputStream()
up View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4099718#4099718 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4099718 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: HTML source codes has some characters like
so how can I solve it, need to re-compile the jsf from source? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4093936#4093936 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4093936 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: HTML source codes has some characters like
How about send this new HtmlUtills.class to me? I will replace the old one, is it enough? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4093952#4093952 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4093952 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: HTML source codes has some characters like
Pls send it to [EMAIL PROTECTED], thanks. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4094224#4094224 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4094224 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: HTML source codes has some characters like
Pls refer to the img, anyone can help me? [img]http://www.0515px.com/upload/Snap1.jpg[/img] View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4093850#4093850 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4093850 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - HTML source codes has some characters like # 30416, but I
HTML source codes has some characters like # 30416, but IE display these native words rightly. I use jboss seam and facelet, and there must not has # 30416 charater, which is not supported by google search engine. I even tried to solve this problem in jsf level, here are some codes, but still not work: webpage: ?xml version=1.0 encoding=UTF-8? meta http-equiv=Content-Type content=application/xhtml+xml; charset=UTF-8 / web.xml filter | filter-nameSet Character Encoding/filter-name | filter-classcom.eastidea.px0515.util.SetCharacterEncodingFilter/filter-class | init-param | param-nameencoding/param-name | param-valueUTF-8/param-value | /init-param | /filter | filter-mapping | filter-nameSet Character Encoding/filter-name | url-pattern/*/url-pattern | /filter-mapping DB conection string: connection-urljdbc:mysql://127.0.0.1:3306/px0515?useUnicode=truecharacterEncoding=UTF-8/connection-url View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4090466#4090466 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4090466 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: HTML source codes has some characters like
IE browser display these native characters rightly, incuding all native characters come from database, but the html source code has problem. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4090467#4090467 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4090467 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Search engine can't find the utf-8 character
I have the code in webpage: ?xml version=1.0 encoding=UTF-8? | meta http-equiv=Content-Type content=application/xhtml+xml; charset=UTF-8 / IE can display the page rightly, but has problem for Search engine like google. [img]http://www.javaeye.com/upload/attachment/pic/8706/090fd3ee-682a-43aa-8035-5cc976fe3595-thumb.jpg[/img] View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4086746#4086746 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4086746 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: How can I disable the query cache?
up View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4069566#4069566 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4069566 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: How can I disable the query cache?
i use query.setHint(org.hibernate.cacheMode, CacheMode.REFRESH); | query.setHint(org.hibernate.cacheable, false);, but it does not work. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068517#4068517 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068517 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - How can I disable the query cache?
I find project.moduleItems can't be refreshed automaticly, after adding a new module. Are there any ways to just clear certain object - project, I not like to use entityManager.clear();, as I know it will clear all the cached object, is it a problem? public Project getProjectDetail(Long projectid) { | String sql = select DISTINCT p from Project p; | sql += left join fetch p.pm; | sql += left join fetch p.dm; | sql += left join fetch p.tm; | sql += left join fetch p.customer; | sql += left join fetch p.moduleItems; | sql += left join fetch p.qaItems; | sql += left join fetch p.devItems; | sql += left join fetch p.phaseItems; | sql += where p.projectid = + projectid; | sql += order by p.name; | entityManager.clear(); | Project p = (Project)entityManager.createQuery(sql).getSingleResult(); | return p; | } View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068501#4068501 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068501 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Wrong action order? Need I to change all my searching webpag
When I click the Link A, why seam call projectQueryAction.doQuery before projectQueryAction.resetQuery? As I know It work well in seam 1.2, now I update to 2.0. Link A: s:link action=#{projectQueryAction.resetQuery} value=Project Browser / Pre-Action: page view-id=/page/model/project/frontend/projectList.xhtml | action=#{projectQueryAction.doQuery} | navigation from-action=#{projectMaintAction.view} | redirect | view-id=/page/model/project/frontend/projectBrowse.xhtml / | /navigation | /page View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4059493#4059493 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4059493 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Write a custom pagination bar component ?
Maybe no need the tag, just use blow codes instead? ui:include src=/page/tiles/paginationBar.xhtml |ui:param name=queryCriteria value=#{userQueryCriteria} / | /ui:include View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4059012#4059012 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4059012 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: selectDate not popping up on click
I mit the error too, html code is: SPAN | onclick=__selectDate('j_id51:project_planStartDate', 'j_id51:project_planStartDate'); Above, parameter1 and parameter2 are same? Why the function definition in calendar.htm is different: function __selectDate(calName, viewCtlName) { s:decorate template=/page/tiles/formFieldDecorate.xhtml | ui:define name=labelPlan Start Date/ui:define | h:inputText id=planStartDateInput value=#{project.planStartDate} | s:convertDateTime pattern=MM/dd// | /h:inputText | s:selectDate id=planStartDateCal for=planStartDateInput startYear=2000 endYear=2010 | h:graphicImage url=/img/dtpick.gif style=margin-left:5px;cursor:pointer title=Select a date/ | /s:selectDate | /s:decorate View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4059295#4059295 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4059295 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Write a custom pagination bar component ?
I like to Write a custom pagination bar component to replace the following codes. Does it mean I will lose the benifit of f:setPropertyActionListener tag like below, and need to use parameters like userQueryCriteria.gotoPage?curPage=#{pn} ? h:commandLink value=#{pn} action=#{userQueryCriteria.gotoPage} rendered=#{userQueryCriteria.curPage!=pn} f:setPropertyActionListener target=#{userQueryCriteria.curPage} value=#{pn} / /h:commandLink = dataTable: | h:dataTable id=userList | value=#{userList} var=user | styleClass=grid maxWidth headerClass=colHeaderLink rowClasses=rowAlternate rowNormal | h:column | pagination bar: | h:commandLink value= action=#{userQueryCriteria.firstPage} | rendered=#{userQueryCriteria.previousPageAvailable} style=text-decoration:none / | | h:commandLink value= | action=#{userQueryCriteria.previousPage} | rendered=#{userQueryCriteria.previousPageAvailable} style=text-decoration:none / | | c:forEach | begin=1 end=#{userQueryCriteria.totalPage} var=pn | h:commandLink value=#{pn} action=#{userQueryCriteria.gotoPage} | rendered=#{userQueryCriteria.curPage!=pn} | f:setPropertyActionListener | target=#{userQueryCriteria.curPage} value=#{pn} / | /h:commandLink | h:outputText value=#{pn} | rendered=#{userQueryCriteria.curPage==pn} / | /c:forEach | | h:commandLink value= | action=#{userQueryCriteria.nextPage} | rendered=#{userQueryCriteria.nextPageAvailable} style=text-decoration:none/ | | h:commandLink value= action=#{userQueryCriteria.lastPage} | rendered=#{userQueryCriteria.nextPageAvailable} style=text-decoration:none / | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4059006#4059006 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4059006 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - I got the java.lang.NoClassDefFoundError error
I get the error: Caused by: java.lang.NoClassDefFoundError: org/richfaces/component/TreeNode I find that the richfaces-3.0.1.jar in qaforum.ear folder, and had change value to true as below: attribute name=UseJBossWebLoadertrue/attribute | | anyone can help me? I use jboss-seam 2.0, jboss 4.2 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4058509#4058509 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4058509 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: How can I get the value from s:selectItems
@In is not valid, need to use get/set method. It's work now. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4057375#4057375 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4057375 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - How can I get the value from s:selectItems
Why devIds always is null? thanks. Webpage: h:selectManyListbox value=#{devIds} size=8 | s:selectItems value=#{devListForAdd} var=dev label=#{dev.englishName}/ | s:convertEntity / | /h:selectManyListbox Action: s:button action=#{actorDevMaintAction.saveDev} | value=Add / @In(required = false) | @Out(required=false) | private ListUser devIds; View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4057207#4057207 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4057207 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - How can I get the value from s:selectItems
Why devIds always is null? thanks. Webpage: h:selectManyListbox value=#{devIds} size=8 |s:selectItems value=#{devListForAdd} var=dev label=#{dev.englishName}/ |s:convertEntity / | /h:selectManyListbox Action: s:button action=#{actorDevMaintAction.saveDev} | value=Add / @In(required = false) | @Out(required=false) | private ListUser devIds; View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4057209#4057209 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4057209 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Allways can't get he project value, bother me for 2 days
thanks for your feedback! my actionbean: @Stateful | @Name(projectMaintAction) | @Scope(ScopeType.CONVERSATION) | @Restrict(#{identity.loggedIn}) | public class ProjectMaintActionImpl implements ProjectMaintAction { | | @In(required = false) @Out | private Project project; | | //@In(value=projectMaintService, create=true) | //public ProjectMaintService projectMaintService; | @In | private EntityManager entityManager; | | @In | private FacesMessages facesMessages; | | @Logger | private Log log; | | private boolean isCreation = false; | | public boolean isCreation() { | return isCreation; | } | @Begin | public void createProject() { | isCreation = true; | project = new Project(); | } | @End | public void saveProject() { | if (isCreation == true){ | String aa = project.getName(); | entityManager.persist(project); | } | } | | | @Destroy @Remove | public void destroy() { | } | public void delete() { | // TODO Auto-generated method stub | | } | public void editProject() { | // TODO Auto-generated method stub | | } | public void updateProject() { | // TODO Auto-generated method stub | | } | public void viewProject() { | // TODO Auto-generated method stub | | } | | } View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4026209#4026209 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4026209 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Allways can't get he project value, bother me for 2 days
it's ok now, my code come from different doc, it's my mistake. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4026218#4026218 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4026218 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Is it a bug?
ProjectQueryActionImpl call it's super -BaseQueryActionImpl method resetQueryInBase(projectQueryCriteria), So in BaseQueryActionImpl.java below method, parameter BaseQueryCriteria is a ProjectQueryCriteria instance: public void resetQueryInBase(BaseQueryCriteria queryCriteria) { | // | queryCriteria.setCurPage(1); | //...A | } BaseQueryCriteria.java public void setCurPage(int curPage) { | // B | this.curPage = curPage; | } The question is in place B, setCurPage successfully, but debug in A place, the curPage still is default 0. Thanks View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4026501#4026501 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4026501 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Is it a bug?
queryCriteria.setCurPage(1); //return 1, but debug variable still = 0? int surPage = queryCriteria.getCurPage(); View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4026513#4026513 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4026513 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Is it a bug?
also i find: projectQueryCriteria.searchString != projectQueryCriteria.getSearchString() View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4026520#4026520 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4026520 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Allways can't get he project value, bother me for 2 days
pages.xml | navigation from-action=#{projectMaintAction.add} | render view-id=/backend/project/projectAdd.xhtml / | /navigation | | page view-id=/projectAdd.xhtml | conversation-required=true | navigation from-action=#{projectMaintAction.save} | render view-id=/projectQuery.xhtml / | /navigation | /page projectQuery.xhtml h:commandLink id=addProject value=Add Project action=#{projectMaintAction.add} propagation=true/ ProjectMaintActionImpl.Add() | @Stateful | @Name(projectMaintAction) | @Scope(ScopeType.CONVERSATION) | @Restrict(#{identity.loggedIn}) | public class ProjectMaintActionImpl implements ProjectMaintAction { | @Begin | public void add() { | isCreation = true; | project = new Project(); | } | } projectAdd.xhtml | h:form | h:inputText id=projectName | value=#{project.name} / | h:commandButton type=reset action=# value=Reset / | /h:form | public void save() { | if (isCreation == true){ | String aa = project.getName(); | projectMaintService.save(project); | } | } String aa = project.getName() return null, why? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4026105#4026105 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4026105 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: How can i popup a browser window?
i am not very clear, could you paste all codes here, or send them to [EMAIL PROTECTED], thanks a lot! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4025452#4025452 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4025452 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - How can i popup a browser window?
function openWindow(element) | { | var vWinUsers = window.open(userPicker.resetQuery?formId=projectAddFormmultiSelect=element=' + element, 'UserPicker', 'status=yes,resizable=yes,top=100,left=200,width=580,height=750,scrollbars=yes'); | vWinUsers.opener = self; | vWinUsers.focus(); | } | /script | input name=pm / | a href=javascript:openWindow('pm'); | h:graphicImage url=/img/filter_public.gif border=0 | height=16 width=16 align=absMiddle | title=Select a user | / | /a Which code shall i replace userPicker.resetQuery with? if i use h:commandLink action=#{hotelBooking.selectHotel} target=_blankView Hotel/h:commandLink, how to control the window's size like top=100,left=200,width=580,height=750? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4025111#4025111 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4025111 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: How can i popup a browser window?
anybody can help me? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4025289#4025289 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4025289 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Who can give me a sample about userAction call userService,
Who can give me a sample about userAction call userService, and EntityManager is in userService? thanks View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4022817#4022817 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4022817 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Is there any good way to implement jump from actionA.method
thanks View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4022175#4022175 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4022175 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - h:commandButton not work
2 things in one webpage: 1. h:commandButton id=findButton value=Filter action=#{projectAction.find}/ | | 2. s:link action=#{projectAction.find} value=Projects / | | also has h:inputText id=searchString value=#{projectAction.searchString} size=15 / I find h:commandButton cannot call projectAction.find method, only can set projectAction.searchString field to new value; but s:link can. anyone could help me? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4021547#4021547 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4021547 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: h:commandButton not work
anonymous wrote : Do you have a form around the commandButton and input field? | | Note that s:link does NOT do a form submission so searchString won't be updated in the model using s:link. thanks for your feedback! yes, i have a h:form id=projectSearchForm around the commandButton and input field. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4021552#4021552 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4021552 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: h:commandButton not work
just click the button, find following info: 14:06:01,791 INFO [STDOUT] beforePhase: RESTORE_VIEW(1) | 14:06:01,822 INFO [STDOUT] afterPhase: RESTORE_VIEW(1) | 14:06:01,822 INFO [STDOUT] beforePhase: APPLY_REQUEST_VALUES(2) | 14:06:01,854 INFO [STDOUT] afterPhase: APPLY_REQUEST_VALUES(2) | 14:06:01,854 INFO [STDOUT] beforePhase: PROCESS_VALIDATIONS(3) | 14:06:01,885 INFO [STDOUT] afterPhase: PROCESS_VALIDATIONS(3) | 14:06:01,885 INFO [STDOUT] beforePhase: UPDATE_MODEL_VALUES(4) | 14:06:01,900 INFO [STDOUT] afterPhase: UPDATE_MODEL_VALUES(4) | 14:06:01,916 INFO [STDOUT] beforePhase: RENDER_RESPONSE(6) | 14:06:02,072 INFO [STDOUT] afterPhase: RENDER_RESPONSE(6) Also, here are the code: h:form id=projectSearchForm | table class=jiraform maxWidth | tbody | tr | td class=jiraformheader colspan=7 | a href=# | target=_jirahelp | h:graphicImage url=/img/help_blue.gif | border=0 width=16 align=right | title=Get online help about Defining Project Versions | alt=Get help! / | /a | h3 class=formtitleAdministration/h3/td/tr | tr | td class=jiraformbody colspan=7 | pBelow is the list of all 1 projects for this installation | of JIRA. /p | p | h:graphicImage url=/img/bullet_creme.gif | border=0 height=8 width=8 align=absMiddle / | ba id=add_project href=#Add Project/a/b | /p | p | Displaying proects bh:outputText value=#{projectQueryAction.startIndex} //b | to bh:outputText value=#{projectQueryAction.endIndex} //b | of bh:outputText value=#{projectQueryAction.totalCount} //b. | font size=1(a href=#Reset Filter/a) /font | /p | /td | /tr | | tr bgcolor=#ff | td align=right bgcolor=#f0bProject Per Page:/b/td | td | h:selectOneMenu value=#{projectQueryAction.pageSize} | f:selectItem itemLabel=All itemValue=100/ | f:selectItem itemLabel=3 itemValue=3/ | f:selectItem itemLabel=20 itemValue=20/ | f:selectItem itemLabel=50 itemValue=50/ | /h:selectOneMenu | /td | td align=right bgcolor=#f0 | bName Contains:/b | /td | td | h:inputText id=searchString value=#{projectQueryAction.searchString} size=15 / | /td | td align=right bgcolor=#f0 | bStatus:/b | /td | td | h:selectOneMenu value=#{projectQueryAction.searchStatus} | f:selectItem itemLabel=Any itemValue=/ | f:selectItem itemLabel=Open itemValue=open/ | f:selectItem itemLabel=Closed itemValue=closed/ | /h:selectOneMenu | /td | td | h:commandButton id=findButton value=Filter action=#{projectQueryAction.find2} / | /td | /tr | /tbody | /table | /h:form package com.eastidea.qaforum.action; | | import java.io.Serializable; | import java.util.List; | | import javax.ejb.Remove; | import javax.ejb.Stateful; | import javax.persistence.EntityManager; | import javax.persistence.PersistenceContext; | import javax.persistence.Query; | | import org.jboss.seam.ScopeType; | import org.jboss.seam.annotations.Destroy; | import org.jboss.seam.annotations.Factory; | import org.jboss.seam.annotations.Name; | import org.jboss.seam.annotations.Scope; | import org.jboss.seam.annotations.datamodel.DataModel; | import org.jboss.seam.annotations.datamodel.DataModelSelection; | import org.jboss.seam.annotations.security.Restrict; | | import com.eastidea.qaforum.entity.Project; | | @Stateful | @Name(projectQueryAction) |
[jboss-user] [JBoss Seam] - Re: h:commandButton not work
sorry, h:commandButton id=findButton value=Filter action=#{projectQueryAction.find2} /should be h:commandButton id=findButton value=Filter action=#{projectQueryAction.find} /, but still work. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4021888#4021888 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4021888 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: h:commandButton not work
i missed public void setPageSize(int pageSize); in it's interface, it's work now. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4021901#4021901 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4021901 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user