i had tables in a database,i want to generate entity bean,action bean,view once
and the generated application can be run.
Can seam 1.x do that?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991181#3991181
Reply to the post :
http://www.jboss.com/index.html
"[EMAIL PROTECTED]" wrote : yes.
|
| http://docs.jboss.com/seam/1.1CR2/reference/en/html/gettingstarted.html
thank you gavin!
but if i want to use icefaces ,the seam don't generate the view ,and the file
generatd put into a directory,Can i put it into difference directory in
obedience to my
eg:
i have 20 tables,i want to generate 1-5 tables code to admin module,and 6-10
tables code to system module, and 10-20 tables code to forum module.
but in current version,jboss-seam generate all tables code to only one
direction,include entity,session and view.
View the original post :
http:
direction is directory
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4020551#4020551
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4020551
___
jboss-user mailing list
jboss-us
eg:
i have 20 tables,i want to generate 1-5 tables code to admin module,and 6-10
tables code to system module, and 10-20 tables code to forum module.
but in current version,jboss-seam generate all tables code to only one
directory,include entity,session and view.
View the original post :
htt
i meet the same question,but can't resolve it
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4075150#4075150
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4075150
___
jboss-use
i do it as the doc,but i can't invoke the interceptor,my code is the following
theinterceptor:
package cn.sh.guanghua.manhour.service.manhour;
import java.lang.reflect.Modifier;
import java.util.Map;
import javax.interceptor.AroundInvoke;
import javax.interceptor.InvocationContext;
import org.j
my env:jboss-4.2.0.GA + jboss-seam-2.0.0.BETA1
after the jboss start ,i can login to my application's home page for once,then
i logout to login page,but here i must submit the username and password
towice,then login to the home page,why?
can you help me? thank you!
View the original post :
h
my menu source code:
the Authenticator class:
@Name("authenticator")
@Scope(ScopeType.SESSION)
public class Authenticator {
@Logger
Log log;
@In
Identity identity;
@In
EntityManager entityManager;
private User user = new User();
my test intercept:
@Name("interceptsTest")
@Interceptor
public class InterceptsTest {
@Logger
Log log;
@AroundInvoke
public Object doLogs(InvocationContext inv) throws Exception {
int methodModify = inv.getMethod().getModifiers();
my test intercept:
@Name("interceptsTest")
| @Interceptor
| public class InterceptsTest {
| @Logger
| Log log;
|
|
| @AroundInvoke
| public Object doLogs(InvocationContext inv) throws Exception {
|
| int methodModify = inv.getM
thank your reply!
i use a test case to call the persist method,the following is code:
@Test
| public void testIntercept() throws Exception {
| new ComponentTest() {
| protected void testComponents() throws Exception {
that's ok,thank you!
but how to define a seam component? Is not it to use @Name to define?
pardon my prolixity!
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4079425#4079425
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply
i understand
thank you very much again!
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4079816#4079816
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4079816
___
jboss-user mail
the getRestrictions method in List Bean is invoked seven time when the
getResultList method is invoked?
jboss-4.2.0.GA+jboss seam2.0GA
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4110068#4110068
Reply to the post :
http://www.jboss.com/index.html?module=b
jboss-4.2.0.GA + jboss seam2.0GA
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4110067#4110067
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4110067
___
jboss-user mailing li
in my page ,only one place to inove the method,but it excuted twice,when render
the page once
i search the solution in jboss forum and google,but i cann't solve it.
the code piece:
|
| #{messages['task.principal']}
|
|
|
|
|
|
when the
thank you,amitev!
"The getters are invoked more than once per request",the first,i think it is
not a good idea,
the second in ,the expression
only accept the getter method.
and in my project,i have many getter method,in which having expensive logic.
what can i do?
thank you again!
View the o
jboss seam 2 rc1 application running on jboss 4.2 + mysql5
the application runs every two days,it throws Software caused connection abort:
socket write error
the exception detail:
5:09:24,609 ERROR [JDBCExceptionReporter] No operations allowed after
connection closed.Connection was implicitly clo
when using the non-get method,the method are invoked more than once per
request!
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096370#4096370
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096370
config as 180
then the question is solved
the reason:
in mysql,default global.wait_timeout is 28800 second,if the value of
idle-timeout-minutes more than global.wait_timeout,and when mysql close the
idle connection,the connection still in the jboss connection pool.then if jboss
application get t
i use the @Factory,but can't solve the question
my list bean generated jboss gen:
package cn.sh.guanghua.manhour.service.admin;
|
| import org.jboss.seam.Component;
| import org.jboss.seam.ScopeType;
| import org.jboss.seam.annotations.Factory;
| import org.jboss.seam.annotations.Name;
look forward to anybody help on edge !
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4097673#4097673
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4097673
___
jboss-user maili
up
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098096#4098096
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098096
___
jboss-user mailing list
jboss-user@lists.jboss.org
h
thank you,pete!
as you said,the method is invoked once,but i cann't still understand:
1.how the page know the method "usersByManager" in UserList?
2.if i have the same factory method in another class,what's the result?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtop
new feature that the jboss seam don't contain:
1. the Home Bean,List Bean,entity can be generated into difference package,and
the view can be generated into difference directory.
| 2. the table prefix can be get off when generating code
| 3. the label value in page be config in resource file
The aim of myseam is providing many ways to use jboss seam and sharing some
using experience.These often are not attentioned by framework itself,because
different people or companies are different in ways and habits of using jboss
seam.Myseam is just the tools that let people to use jbossseam mo
to 1 and 2,hibernate tools can not support these two functions too,but we need
them very much ,so i developped myseam.I love jboss seam very much,but if it
can add more characters of appfuse 1.9.x,it'll become more and more perfect.I
have to say myseam was supplied to my own company to use at fi
to explain 1 and 2:
1). for example, i have three tables:sys_role,sys_user,rs_resource,in
myseam,configurate the generate as the following:
|
|
|
|
|
| sys_user,sys_role
|
|
| rs_resource
|
|
complementarity for 2:
the name of the code generated as the following:
model:User,Role,Resource
home:UserHome,RoleHome,ResourceHome
list:UserList,RoleList,ResourceList
view:UserEdit.xml,RoleEdit.xml,ResourceEdit.xml,eg.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewto
30 matches
Mail list logo