Just wondering if any of you know the best way to host your project?
I have java hosting that runs a tomcat server.
How do I get the project to display and work correctly on it?
Cheers in advance..!
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/How-to-create-a-war-from
Thiago H. de Paula Figueiredo wrote:
>
> I'm sorry, I overlooked the only place user is set. Having been using
> Tapestry since 5.0.5, almost four years ago, I'd say @SessionState works
> as it should. Your code uses too much side-effects for my taste. And I
> can't see the declarations of
Thiago H. de Paula Figueiredo wrote:
>
> Have you noticed your page code doesn't set the user field anywhere? I
> guess you have a logic issue somewhere.
>
> --
> Thiago H. de Paula Figueiredo
> Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
> and instructor
> Owne
Rich M wrote:
>
> On 06/06/2011 12:48 PM, robnangle wrote:
>> Rich M wrote:
> Fair enough, I was trying to hypothesize at what might be your problem
> based on the small subset of related code shown. But you're right, that
> result does not seem to fit with what I s
Richard Hill-7 wrote:
>
> Rich's point is that pages are re-used: a fresh instance of a page is
> not instantiated for each request. So yes you'll have your transfer data
> rendering in the page, but that doesn't mean that data was
> collected/built/queried from db or whatever in response to the
Rich M wrote:
>
> Most likely your page is not loading and assigning the adminUser boolean
> like you are expecting, and after your initial login, it's not calling
> any of that code anymore and thus your privileges appear to regress to a
> normal user, when really you aren't calculating them
Rich M wrote:
>
> On 06/06/2011 12:20 PM, robnangle wrote:
>> Rich M wrote:
>>> On 06/06/2011 12:04 PM, robnangle wrote:
>>>> No didn't seem to make a difference im afraid. I cant think of anything
>>>> that
>>>> would revert the
Rich M wrote:
>
> On 06/06/2011 12:04 PM, robnangle wrote:
>> No didn't seem to make a difference im afraid. I cant think of anything
>> that
>> would revert the user back to the previous logged in user?
>>
>> My updated code now looks like:
Richard Hill-7 wrote:
>
> Could there be a browser-caching issue here? If the URLs are the same,
> but with different views for logged-in and logged out, perhaps being
> cached?
>
>
>> > Thiago H. de Paula Figueiredo
>> > Independent Java, Apache Tapestry 5 and Hibernate consultant,
>> develope
Thiago H. de Paula Figueiredo wrote:
>
> I'm sorry, but I need to ask: have you checked what the actual user is
> when granting access or not to the admin page? Are you sure your
> authentication code is correct?
>
> --
> Thiago H. de Paula Figueiredo
> Independent Java, Apache Tapestry 5 a
Thiago H. de Paula Figueiredo wrote:
>
> On Mon, 06 Jun 2011 09:26:26 -0300, robnangle <robnan...@gmail.com>
> wrote:
>
>> Hi All,
>
> Hi!
>
>> I create have a @SessionState on my user but when I try logout it is not
>> fully clearing the sess
Essentially i want to destroy the session..
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Clearing-SessionState-tp4458525p4458598.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
-
I want to clear the session so that when another user logs in (say an admin
user) they are the current user in session. at the moment when i log out and
log back in as a different user (an admin user), the previous user is still
in session.
--
View this message in context:
http://tapestry.1045711
Hi All,
I create have a @SessionState on my user but when I try logout it is not
fully clearing the session.
@SessionState
private User user;
onSubmitFromLogout(){
user = null;
return index;
}
Is there a specific way to do it?
Cheers
--
View this message in context:
http://tapestry.1045711.n5
Got it working there wasn't setting the text correctly..
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Send-Email-Upon-Form-Submit-tp2416076p4425305.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---
Hi All,
I have written a JavaMail class and it works great.
I then put it into my tapestry project and am getting a null pointer on the
recipient.
I know why I am getting it as i am putting the:
String[] to = {email} //email is a property and am entering its value in the
tml file
This String[]
Thiago H. de Paula Figueiredo wrote:
>
> On Wed, 13 Apr 2011 09:33:04 -0300, robnangle <robnan...@gmail.com>
> wrote:
>
>> There is no goalkeepers class, goalkeepers is just a list of players
>> taken from the database:
>> public List getGoalk
Thiago H. de Paula Figueiredo wrote:
>
> On Wed, 13 Apr 2011 08:30:42 -0300, robnangle <robnan...@gmail.com>
> wrote:
>
>> t:select t:id="goalkeeper" model="goalkeepers" value="team.keeper"
>> blankOption="never"/
Richard Hill-7 wrote:
>
> It depends. If you have a static list of players then you can store your
> select model in the session. If it's dynamic, you prob want to reload
> from the db each time.
>
> To be honest I'm not sure that storing stuff like this as an SSO is
> best-practice - it's more
Richard Hill-7 wrote:
>
> are "add" and "edit" page classes?
>
>
They are yes.. All values are @Persist, @Property
So is the only way to get the default value up by setting all players as
sso's?
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/T5-Select-wont-find-sele
Richard Hill-7 wrote:
>
> the value attribute will set (choose) the drop down value from the
> options defined in goalkeepers. Does this option/value exist in your
> model?
>
>
>
>
> On Wed, 2011-04-13 at 04:30 -0700, robnangle wrote:
>> t:select t:id="
t:select t:id="goalkeeper" model="goalkeepers" value="team.keeper"
blankOption="never"/
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/T5-Select-wont-find-selected-value-in-edit-tp4300292p4300356.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
-
Hi I have a problem when I am trying to edit values that the selected value
does not appear? My code is below and I thought you just put into
value="team.keeper" which would return the keeper. The two classes both have
@Property+@Persist annotations.
tml for edit class:
insert for creating the
Taha Hafeez wrote:
>
> From what you have shared, you have a common zone for all the selects and
> for each 'onchange' event of the selects this zone is updated. This may
> cause change in other selects which might result in recursive zone updates
> and hence the flashing.
>
> In order to preven
Code below for java:
public Object onChangeOfKeeper() {
keeper = _request.getParameter("param");
if (keeper == null) {
captains = null;
}
else if (keeper != null) {
captains.add(keeper)
Taha Hafeez wrote:
>
> If page is not loading fully, it might be a because of recursive ajax
> calls
>
I am calling several different event methods? Would that be the cause?
Taha Hafeez wrote:
>
> http://jumpstart.doublenegative.com.au/jumpstart/examples/javascript/zonewithoutyellowfade
>
Hi I'm using ajax and javascript to automatically update a select box when
any one of the other select boxes on the page update. Up until now it has
been working fine but I now have a problem that it wont let me debug mt
tapestry page that it is being used on? It just continuously loads and the
pag
You need to check for a null value before calling
> any methods:
>
> if(user.getUserType() != null &&
> user.getUserType().equalsIgnoreCase("Admin")) {
>
>
>
>
>
>
> On Fri, 2011-04-08 at 05:38 -0700, robnangle wrote:
>> Richard
Richard Hill-7 wrote:
>
> You don't say what line your getting your npe but I'm guessing it's
> this:
>
> if(user.getUserType().equalsIgnoreCase("Admin")
>
> if .getUserType() is null as you imply it can be then
> calling .equalsIgnorecase() is going to result in an npe.
>
Ye thats the line i
I am working on my index page and I am setting the side bars based on three
types of people that will be on it:
1) A normal user who userType is null, as they will never have the option to
view or change it
2)An admin user who userType is set to a string "Admin"
3) Any viewer who will be able to se
lltyk wrote:
>
> The js file needs to be in the same package directory, but in the
> resources
> directory instead of the java directory.
>
> --
> View this message in context:
> http://tapestry-users.832.n2.nabble.com/Dynamic-combo-box-Tapestry-5-2-2-tp6011286p6218845.html
> Sent from the Tapes
Ye it should be straight forward copying the example..
Yes they are both in the mixins package..
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Dynamic-combo-box-Tapestry-5-2-2-tp3379129p4269174.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
-
Yohan Yudanara-2 wrote:
>
> Look carefully on the error message..
>
> > With the above ajax, i get the following error:
> >
> > org.apache.tapestry5.internal.services.RenderQueueException
> > Render queue error in SetupRender[ajax/Select1:carmake]: Unable to
> locate
> > asset 'classpath:Fantasy
Yohan Yudanara-2 wrote:
>
> (http://jumpstart.doublenegative.com.au/jumpstart/examples/javascript/ajaxselect1)
>
With the above ajax, i get the following error:
org.apache.tapestry5.internal.services.RenderQueueException
Render queue error in SetupRender[ajax/Select1:carmake]: Unable to locate
I could possibly have it in the correct place but am gettint this error:
Failure creating embedded component 'carMake' of
FantasyGaa.pages.ajax.AjaxSelect1: Unable to resolve 'zoneUpdater' to a
mixin class name. Available mixin types: Autocomplete, DiscardBody,
NotEmpty, RenderDisabled, RenderInfo
Mark wrote:
>
> > Atcach, can you give a complete example (with .tml and controler
> code), with
> > multiple select to refresh.
>
> Take a look at this as well:
> http://jumpstart.doublenegative.com.au/jumpstart/examples/javascript/ajaxselect1
>
> --
Can it be used aswel as @SessionState?
And in the other class how do i get the user then?
Just inject it?
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Session-State-not-setting-user-tp3698456p3701009.html
Sent from the Tapestry - User mailing list archive at Nabble.com
Cheers.. Is that difficult done?
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Session-State-not-setting-user-tp3698456p3699526.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
-
To
Hi,
I am using at session state throughout my application but in one class it
does not seem to be setting/getting the user in one class?
Any idea's?
public class JoinLeague {
private Connection conn;
private PreparedStatement prep;
@Property
@SessionState
Got it sorted lads, cheers..
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Saving-from-an-editable-grid-tp3412259p3415237.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
-
To unsub
It now updates the very first plaers points but since then the player_id and
points values are stuck on the first one I entered. Where do I clear the
player data? Or where do I put in the loop for multiple entries?
Cheers
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Sav
My two classes now look like:
public class PlayerEncoder implements ValueEncoder, ValueEncoderFactory {
private Connection conn;
private PreparedStatement prep;
@Property
private Player temp1;
private List players;
public void createDb() th
So what your saying is to use the id to select the correct person from the
database?
Ant then in the other class, how do I use the encoder?
@Property
private PlayerEncoder encoder;
void onPrepare() {
encoder = new PlayerEncoder();
}
Anything else
Is there any simple examples of value encoders out there? I seem to be only
finding quite complex ones.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Saving-from-an-editable-grid-tp3412259p3412513.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---
tml source:
t:grid source="results1"/>
t:grid t:source="players1" t:row="player"
t:include="player_id,name,county,points">
p:pointsCell>
Player points:
${player
Hi all jus seen topics on problems with editable graids and im having a
problem, the problem is not in getting the editable grid but in saving the
data entered into the field.
My Code:
tml:
Is it because when a new user registers there user id is set by the database
and not the java class? If so is there any way of solving the problem?
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/org-apache-tapestry5-runtime-ComponentEventException-tp3404853p3406425.html
Se
Richard Hill-7 wrote:
>
> I haven't used the @SessionState annotation, I use the
> ApplicationStateManager directly to store SSOs but a quick look at the
> docs suggest it's doing the same thing.
>
> Firstly, I don't understand your User class - it seems to also contain a
> User field? Sounds li
Richard Hill-7 wrote:
>
>
> Getting the user id depends on what public methods your user object has.
> Presumably it has something like .getId() ?
>
>
>
> On Tue, 2011-03-01 at 06:44 -0800, robnangle wrote:
>> Im probably wording the question wrong but that retu
Im probably wording the question wrong but that returns something like a
memory address: Entities.User@12e7cb6
I want to find the user_id of that user?
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/org-apache-tapestry5-runtime-ComponentEventException-tp3404853p3405030.h
Hi,
Is there any way to convert the @Sessionstate user value to a string or a
readable value?
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/org-apache-tapestry5-runtime-ComponentEventException-tp3404853p3405008.html
Sent from the Tapestry - User mailing list archive at N
Hi ye the craeateDb() set's all of that. Got it sorted anyway, thanks people.
I didn'y fully understand the @Property annotation, that was my problem. All
the elements were null.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/org-apache-tapestry5-runtime-ComponentEventExc
Yes stupidly I forgot to set the connection but the errors remain. The
onSuccess():
public String onSuccess() throws Exception {
createDb();
String statement = "INSERT INTO teams(user_id, team_name,
keeper,
fullBack1, fullBack2, fullBack3, halfBack1, halfBack2, hal
Ye I noticed that but cant see what could be wrong with that line:
Line 245:
String statement = "INSERT INTO teams(user_id, team_name, keeper, fullBack1,
fullBack2, fullBack3, halfBack1, halfBack2, halfBack3, midfield1, midfield2,
halfForward1, halfForward2, halfForward3, fullForward1, fullForward
I have seen a couple thru the forum but I dont think they apply to the error
im getting.
org.apache.tapestry5.runtime.ComponentEventException
context
eventType:
action
location:
context:SelectPlayers.tml, line 10
5
6 Select Player
7
8
9
I am not using tapestry-hibernate, is there any examples out there because
the few I have came across seem to be very complex?
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Enum-or-Drop-Down-tp3394312p3394431.html
Sent from the Tapestry - User mailing list archive at Nab
;> No, because tap needs to know how to remap the values on a form submit.
>> So you need to provide a select model. But it's really easy stuff!
>>
>>
>> Take a look:
>> http://jumpstart.doublenegative.com.au/jumpstart/
>>
>>
>> - Stefan
So there is no way of doing it like a grid:
//players being a list populated from a
database..
You have to create a model ect...
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Enum-or-Drop-Down-tp3394312p3394364.html
Sent from the Tapestry - User mailing list archive
Cheers got that sorted..
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Tapestry-app-using-JDBC-tp3390993p3394313.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
-
To unsubscribe,
Hi all,
Is it possible to populate an enum class with data from a database or what
component acts like a drop down box in tapestry?
Cheers
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Enum-or-Drop-Down-tp3394312p3394312.html
Sent from the Tapestry - User mailing list a
What if I have created the Login as a form component?
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Tapestry-app-using-JDBC-tp3390993p3393999.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
-
So I have a 'User' entity class and then my Login class. So in my login I
should have:
private String username;
private String password;
@Inject
private ApplicationStateManager stateManager;
private Object userDao;
User
User user = userDao.get(loginName);
The above line, is the user entity class? And what is the userDao doing?
stateManager.set(User.class, user);
This is setting the user as the current state?
User user = stateManager.get(User.class);
And the above is just returning the current user?
--
Vie
Yes that's what I mean. I have the login logout working, as in I have the sql
code checking if it is a valid user. What I am confused about is how to
store the user's who are logged in and know when they logout.
Cheers
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Tapes
Hi all,
Was wondering is there any examples of tapestry-jdbc login logout
functionality using sessions out there? I cant seem to find any.
Cheers
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Tapestry-app-using-JDBC-tp3390993p3390993.html
Sent from the Tapestry - User m
I did that
, unfortunetly the same error remains..
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/First-Tapestry-app-with-Hibernate-tp3285845p3294268.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
-
I did that, unfortunetly the same error remains..
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/First-Tapestry-app-with-Hibernate-tp3285845p3294267.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---
Errors on console in ide:
06 15:42:32.556::INFO: Logging to STDERR via org.mortbay.log.StdErrLog
ProjectClassLoader: entry=C:\Users\Rob\tutorial\target\classes
ProjectClassLoader: entry=C:\Users\Rob\tutorial\target\test-classes
ProjectClassLoader:
entry=C:\Users\Rob\.m2\repository\org\apache\tap
The problem consists in one of these two classes I think:
http://tapestry.apache.org/schema/tapestry_5_1_0.xsd";
xmlns:p="tapestry:parameter">
Hibernate example app
${current.message}
add
package tutorial.pages;
import Entities.Hello;
impor
Ye seen that cheers got the artifact installed and dependencies all up to
date.. But with no success as the error remains..
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/First-Tapestry-app-with-Hibernate-tp3285845p3294065.html
Sent from the Tapestry - User mailing list a
I have and now there is an error in pom.xml:
missing artifact javax.transaction:jta.jar
Do I need to add dependency?
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/First-Tapestry-app-with-Hibernate-tp3285845p3293951.html
Sent from the Tapestry - User mailing list archiv
I am now using m2eclipse but the error remains the same.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/First-Tapestry-app-with-Hibernate-tp3285845p3293941.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
No what I did was install apache maven and then tell eclipse about the
classpath m2.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/First-Tapestry-app-with-Hibernate-tp3285845p3293929.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
Apologies for that. Yes I am using maven with eclipse.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/First-Tapestry-app-with-Hibernate-tp3285845p3293887.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
--
No i am using the normal eclipse ide.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/First-Tapestry-app-with-Hibernate-tp3285845p3291024.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---
Hi,
I switched to using jetty and unfortunetly the project still will not work.
I get a different error by the looks of it though:
HTTP Error 500:
Exception constructing service 'ValueEncoderSource': Error invoking service
builder method
org.apache.tapestry5.services.TapestryModule.buildValueEnco
I create my project through the command:
mvn archetype:generate
-DarchetypeCatalog=http://tapestry.formos.com/maven-repository
then to import it into eclipse:
mvn eclipse:eclipse sysdeo-tomcat:generate
i also start the server in eclipse
--
View this message in context:
http://tapestry.1045711.
Hi Juan,
I run tomcat through my eclipse plugin. Start the server in eclipse.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/First-Tapestry-app-with-Hibernate-tp3285845p3289532.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---
Thanks for that angelo but no luck.
Same two errors as from the begining.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/First-Tapestry-app-with-Hibernate-tp3285845p3289417.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
--
Hi all,
Ive tried one or two example projects with tapestry and hibernate but cant
seem to get the hibernate part working. Is there any extremely basic ones
out there that anyone would recommend?
Cheers
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Tapestry-Hibernate-tp
Hi Angelo,
Unfortunetly adding that in failed to fix or progress the error im
receiving.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/First-Tapestry-app-with-Hibernate-tp3285845p3289356.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
Hi,
Yes im running it in
eclipse as my ide
tomcat as my server
mysql as my database
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/T5-Hibernate-tp2409789p3286828.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
-
Hi,
Im trying to get this example but keep getting the same two errors. Any help
would be greatly appreciated.
org.apache.tapestry5.internal.services.TransformationException:
java.lang.ClassNotFoundException:
org.apache.tapestry5.hibernate.annotations.CommitAfter
org.apache.tapestry5.internal.se
Hi,
Thats how I created the project originally through the mvn command and then
imported it into eclipse and run it on tomcat, but it keeps leading to them
errors.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/First-Tapestry-app-with-Hibernate-tp3285845p3286011.html
Sent
Sorry if im seeming stupid but adding it to the classpath?
Does that mean adding the dependency to the pom.xml or adding the annotation
jar?
The pom.xml dependencies is as follows:
org.apache.tapestry
tapestry-core
${tapestry-release-version}
Hi all,
Sorry if this has been posted before.
Ive been trying to get going with a few examples of hibernate with tapestry
with no success.
The two main errors i keep gettin are:
org.apache.tapestry5.internal.services.TransformationException:
java.lang.ClassNotFoundException:
org.apache.tapestry
86 matches
Mail list logo