Taking out-sourcing projects

2010-10-16 Thread donf yang
Hi there,

We are very experienced J2EE developers, taking out-sourcing projects, pm me
for resumes.

Thanks

-- 

Regards,

Donf Yang
--
To be surprised,to wonder,is to begin to understand.


[T5.1.0.5]ie window event issue

2010-07-06 Thread donf yang
Hi,

if u open a new ie window by window.open(..); , will triger
beforeunload on the parent window object, then Tapestry.windowUnloaded
will be true, and all ajax event will be invalid.

-- 

Regards,

Donf Yang
--
To be surprised,to wonder,is to begin to understand.


Re: Access Control for events

2009-06-25 Thread donf yang
You  can have a component named Reporter with some javascript code, in your
ajax case, handle the event and record any helpful Block, return
MultiZoneUpdate(reporter.getZone(), reporter). So, you can control any
responses in this component, redirect to login page, display a error message
or pop a login panel by javascript

Reporter.java

public interface Reporter {

 public static final String PARAM_NAME = Reporter;

 public static final byte SUCCESS = 0x04;
 public static final byte INFO = 0x08;
 public static final byte WARN = 0x16;
 public static final byte ERROR = 0x32;

 public CollectionRecord getRecords();
 public void error(Object message);
 public void warn(Object message);
 public void info(Object message);

 public void success(Object message);
 public boolean hasRecord();
 public String getZone();
}


tml:

t:If test=block
div class=record-blockt:Delegate to=message //div
t:parameter name=else
 div class=record-messaget:RenderObject object=${message}
//div
/t:parameter
   /t:If


On Thu, Jun 25, 2009 at 2:41 PM, Moritz Gmelin moritz.gme...@gmx.de wrote:

 Hi,

 I'm on T5.1.0.5.
 I have installed 2 AccessControlDispatchers in my application. One for
 PageRendering and one for event handling. Both Dispatchers just redirect to
 the start page with an error message in the case that e.g. no user was
 logged in.
 This works nicely with all pages and event links.
 The problem is that AJAX calls also get intercepted and the response is
 obviousely the rendered StartPage. So for a click on an inPlace Table when
 the user was not logged in anymore, he gets a Blackbird-Console Popup with a
 not-so-user-friendly error message.

 Does anyone have an idea about possible solutions to this?

 Thanks

 Moritz

 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org




-- 

Regards,

Donf Yang
--
To be surprised,to wonder,is to begin to understand.


Any one using extension-point and extend ?

2009-06-19 Thread donf yang
And when we need it ?

-- 

Regards,

Donf Yang
--
To be surprised,to wonder,is to begin to understand.


Re: Two Menu Components

2009-06-11 Thread donf yang
codes fragements:

Main.tml
div t:type=zone id=majorMenuZone
  t:MyMenu majorMenus=menuSource
   div t:type=zone id=subMenuZone/
/t:MyMenu
/div

t:Block t:id=subMenuBlock1 a href=sub1-menu1/a  a
href=sub1-menu2/a/t:Block
  t:Block t:id=subMenuBlock2 a href=sub2-menu1/a  a
href=sub2-menu2/a/t:Block



---Main.java---
//Provide menu source, key-title of sub menu | value - content block of sub
menu

@Inject
Block subMenuBlock1, subMenuBlock2;

Map getMenuSource(){
MapString, Block menuSource = new HashMapString, Block();
menuSource.put(submenu1title,subMenuBlock1 );
menuSource.put(submenu2title,subMenuBlock2 );
}


---MyMenu.java
---
@Parameter
private Map majorMenus;
private String submenuId;

//If u got a style on majormenu, return MyMenu
Object onShowSubMenu(String submenuId){
this.submenuId = submenuId;
return majorMenus.get(submenuId);
//or return MainMenu
}
---MyMenu.tml
---
t:Loop
//loop major menu titles here, and create component event showSubMenu ,
link one of zones.
/t:Loop

There are 2 ways to refresh your menus:
1. return MyMenu to refresh the whole things of your menu component
2. return content block of your submenu, and you can return a
MultiZoneUpdate anyway.
On Thu, Jun 11, 2009 at 8:26 PM, Eldred Mullany 
eldred.mull...@easypay.co.za wrote:

 Hi All



 I need some advice on how to get two menu components to talk to each
 other. The fist component is a top menu with a whole lot of links, when
 an action link is fired(from the first menu component) I want to pass a
 parameter string to the second component (sub-menu) which will render
 based on the parameter it's been passed to it.



 So in other words second menu component is dependent on the first.



 Its pretty much high level but some advice would be useful. Perhaps a
 component listener of some sort?



 Any ideas ?



 Thanks

 Eldred






-- 

Regards,

Donf Yang
--
To be surprised,to wonder,is to begin to understand.


Re: Two Menu Components

2009-06-11 Thread donf yang
Oh, some mistakes:

t:Block  -t:block

---MyMenu.java
---
Object onShowSubMenu(String submenuId){
this.submenuId = submenuId;
//It's depends on which zone u linked
//MultiZoneUpdate multiZoneUpdatenew = new
MultiZoneUpdate(majorMenuZone, this);
MultiZoneUpdate multiZoneUpdatenew = new MultiZoneUpdate(subMenuZone,
majorMenus.get(submenuId));
return multiZoneUpdatenew;
}



On Thu, Jun 11, 2009 at 9:20 PM, donf yang donf.y...@gmail.com wrote:

 codes fragements:

 Main.tml
 div t:type=zone id=majorMenuZone
   t:MyMenu majorMenus=menuSource
div t:type=zone id=subMenuZone/
 /t:MyMenu
 /div

 t:Block t:id=subMenuBlock1 a href=sub1-menu1/a  a
 href=sub1-menu2/a/t:Block
   t:Block t:id=subMenuBlock2 a href=sub2-menu1/a  a
 href=sub2-menu2/a/t:Block



 ---Main.java---
 //Provide menu source, key-title of sub menu | value - content block of sub
 menu

 @Inject
 Block subMenuBlock1, subMenuBlock2;

 Map getMenuSource(){
 MapString, Block menuSource = new HashMapString, Block();
 menuSource.put(submenu1title,subMenuBlock1 );
 menuSource.put(submenu2title,subMenuBlock2 );
 }


 ---MyMenu.java
 ---
 @Parameter
 private Map majorMenus;
 private String submenuId;

 //If u got a style on majormenu, return MyMenu
 Object onShowSubMenu(String submenuId){
 this.submenuId = submenuId;
 return majorMenus.get(submenuId);
 //or return MainMenu
 }
 ---MyMenu.tml
 ---
 t:Loop
 //loop major menu titles here, and create component event showSubMenu ,
 link one of zones.
 /t:Loop

 There are 2 ways to refresh your menus:
 1. return MyMenu to refresh the whole things of your menu component
 2. return content block of your submenu, and you can return a
 MultiZoneUpdate anyway.
   On Thu, Jun 11, 2009 at 8:26 PM, Eldred Mullany 
 eldred.mull...@easypay.co.za wrote:

 Hi All



 I need some advice on how to get two menu components to talk to each
 other. The fist component is a top menu with a whole lot of links, when
 an action link is fired(from the first menu component) I want to pass a
 parameter string to the second component (sub-menu) which will render
 based on the parameter it's been passed to it.



 So in other words second menu component is dependent on the first.



 Its pretty much high level but some advice would be useful. Perhaps a
 component listener of some sort?



 Any ideas ?



 Thanks

 Eldred






 --

 Regards,

 Donf Yang

 --
 To be surprised,to wonder,is to begin to understand.




-- 

Regards,

Donf Yang
--
To be surprised,to wonder,is to begin to understand.


Tapestry-OSGi screenshots of key features

2009-05-28 Thread donf yang
Hello everyone, new post for tapestry-osgi is here:

http://groups.google.com/group/tapestry-osgi/web/tapestry-osgi-screenshots

New features of Tapestry-OSGi:

   - Full functionality compatible with Tapestry (current version is
   5.1.0.5)
   - Update/upgrade component bundles dynamically
   - Extension and ExtensionPoint definitions
   - Component modules definitions
   - Dynamic IoC Module
   - Extjs supported


Tapestry-OSGi Google Group
http://groups.google.com/group/tapestry-osgi


Regards,

Donf Yang
--
To be surprised,to wonder,is to begin to understand.


Building osgi application by using Tapestry-OSGi

2009-05-08 Thread donf yang
Hi,

I was just built a new project for osgi solution of tapestry, and the
quickstart has posted in tapestry-osgi's google group.

Tapestry-OSGi Quickstart:
http://groups.google.com/group/tapestry-osgi/web/building-osgi-application-by-using-tapestry-osgi

Tapestry-OSGi Google Group:
http://groups.google.com/group/tapestry-osgi

-- 

Regards,

Donf Yang
--
To be surprised,to wonder,is to begin to understand.