Frank, 
I didn't understand the challenge you are facing. What do you mean by
"cusomize j2-admin and jetspeed2 together" ? 

Do you want to disable some portlets from j2-admin ? Or do you want to
change the layout for the portlets from j2-admin ? or you have some
other requirements.

My guess is that you want to see the code for the j2-admin and find out
how it works, right? if that is the case, then it will help you to know
that j2-admin is nothing but a portlets application. JS2 has two
portlet applications that are their by default, and they are needed for
a correct functionality. j2-admin is one of them, the other one is the
layout portlet.

Mainly, j2-admin makes it easy to edit the database for users, contents,
groups, add/remove portlets. If you don't want to use the j2-admin (and
you don't have to) you can remove it from the default preload list in:

assembly/prefs.xml :

<bean id="PreferencesProviderImpl" 
class="org.apache.jetspeed.prefs.impl.PersistenceBrokerPreferencesProvider" 
name="prefsPersistenceBroker" init-method="init">
         <constructor-arg index="0">
             <value>JETSPEED-INF/ojb/prefs_repository.xml</value>
                     </constructor-arg>
                         <constructor-arg index="1">
                             <ref bean="preferencesCache" />
                                 </constructor-arg>
                                   <constructor-arg index='2'>
                                                   <list>
                                                   <value>j2-admin</value>
                                               </list>
       </constructor-arg>
     <constructor-arg index='3'> <value type="boolean">false</value> 
</constructor-arg>
</bean>

You can disable it here, but then you are making your life harder at
this point because you need to edit everything manually.

I hope this helps.



On Tue Mar 10,2009 03:15 pm, Frank Otto wrote:
> I have build my custom portal so, but I can't change j2-admin. I don't 
> unterstand how I customize j2-admin and jetspeed2 together?
>
> Vivek Kumar schrieb:
>> http://portals.apache.org/jetspeed-2.1.3/tutorials/stepbystep/guide-building-custom-portal-maven2.html
>>  
>> Frank Otto wrote:
>>> how do I make a custem j2-admin application?
>>>
>>> Vivek Kumar schrieb:
>>>> Hi
>>>>
>>>> Use the following configuration in custom j2-admin application.
>>>> This will take base as j2-admin and will override all the files provide 
>>>> in your custom application.
>>>>
>>>>  <build>
>>>>    <plugins>
>>>>      <plugin>
>>>>        <groupId>org.apache.maven.plugins</groupId>
>>>>        <artifactId>maven-war-plugin</artifactId>
>>>>        <configuration>
>>>>          <warName>${pom.artifactId}</warName>
>>>>          <overlays>
>>>>            <overlay>
>>>>              <id>jetspeed2</id>
>>>>              <groupId>org.apache.portals.jetspeed-2</groupId>
>>>>              <artifactId>j2-admin</artifactId>
>>>>            </overlay>
>>>>          </overlays>
>>>>        </configuration>
>>>>      </plugin>
>>>>    </plugins>
>>>>  </build>
>>>>
>>>>
>>>> Frank Otto wrote:
>>>>> can you explain this please? how should I overlay?
>>>>>
>>>>> Vivek Kumar schrieb:
>>>>>> Hi
>>>>>>
>>>>>> Jetspeed by default does not provide way to customize J2-admin.
>>>>>> However you can create another custom portal application and then 
>>>>>> over-lay it with j2-admin application.
>>>>>>
>>>>>> Frank Otto wrote:
>>>>>>> that works, but I can't modify the j2-admin app. I search a way to 
>>>>>>> modify j2-admin.
>>>>>>>
>>>>>>> Vivek Kumar schrieb:
>>>>>>>> Hi
>>>>>>>>
>>>>>>>> *mvn -P tomcat,min
>>>>>>>>
>>>>>>>> This command will build the custom jetspeed portal and include the 
>>>>>>>> j2-admin.
>>>>>>>>
>>>>>>>> for more go here
>>>>>>>>
>>>>>>>> http://portals.apache.org/tutorials/jetspeed-2/build-commands.html
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> *Frank Otto wrote:
>>>>>>>>> hi,
>>>>>>>>>
>>>>>>>>> I build a custom jetspeed portal. What is the best way to build 
>>>>>>>>> custom jetspeed2 (2.1.3) with custom j2-admin included?
>>>>>>>>>
>>>>>>>>> The tutorial on http://portals.apache.org/tutorials/jetspeed-2/ 
>>>>>>>>> shows only a custom jetspeed 2 build, but not j2-admin.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> kind regards,
>>>>>>>>>
>>>>>>>>> frank
>>>>>>>>>
>>>>>>>>> ---------------------------------------------------------------------
>>>>>>>>> To unsubscribe, e-mail: 
>>>>>>>>> [email protected]
>>>>>>>>> For additional commands, e-mail: 
>>>>>>>>> [email protected]
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> ---------------------------------------------------------------------
>>>>>>> To unsubscribe, e-mail: [email protected]
>>>>>>> For additional commands, e-mail: 
>>>>>>> [email protected]
>>>>>>>
>>>>>>
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: [email protected]
>>>>>> For additional commands, e-mail: [email protected]
>>>>>>
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: [email protected]
>>>>> For additional commands, e-mail: [email protected]
>>>>>
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: [email protected]
>>>> For additional commands, e-mail: [email protected]
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [email protected]
>>> For additional commands, e-mail: [email protected]
>>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to